
<h1>Register new user</h1>
<font color = red><%= error_messages_for 'user' %></font>
<fieldset>
    <legend>Enter User Details</legend>
    
    <% form_for :user  do |form| %>

        <p>
				<label for="user_name" >Name:</label>
				<%= form.text_field :name, :size => 40 %>
				</p>    				
				
				<p>
        <label for="user_password">Password:</label>
        <%= form.password_field :password, :size => 40 %>
        </p>
        
        <p>
        <label for="user_password_confirmation">Confirm:</label>
        <%= form.password_field :password_confirmation, :size => 40 %>
        </p>		
          
        <p>
				<label for="user_email_addr" >E-Mail:</label>
				<%= form.text_field :email_addr, :size => 60 %>
				</p> 	   
				
        <p>
        <label for="user_question">Question:</label>
        <%= form.text_field :question, :size => 100 %>
        </p>
        
        <p>
        <label for="user_question_answer">Question Answer:</label>
        <%= form.text_field :question_answer, :size => 100 %>
        </p>
        
        <p>
        <label for="openid_url">OpenID URL:</label>
        <%= form.text_field :identity_url , :size => 60%>
        </p>  	
        			       	
			  <p>Profile:<br />
			  <%= form.text_area :profile, :rows => 6, :cols => 60 %>
			  </p> 				        
        <%= submit_tag "register", :class => "submit" %>
        
    <% end %>
  
    
</fieldset>

